/**
 * @function
 */
public class Switch_IF_ELSE_Demo {

    public static void main(String[] args) {

//        String strnull = null;
        String strnull = "";
        switch (strnull){//NullPointerException
            case "a":
                System.out.println("Switch_IF_ELSE_Demo:main:a");
                break;
        }

        System.out.println("Switch_IF_ELSE_Demo:main: switch over:"+strnull);

        int a = 1;
        if (a == 1) {
            String str = "1";
        } else if (a == 2) {
            String str = "2";

        }


        System.out.println("456");
        switch (100) {
            case 1:

                System.err.println(1);
                // return 0;
                break;
            case 2:
                System.out.println(2);
                // return 3;
                break;
//		default:
//			System.err.println("default");
//			break;
        }

        System.out.println("123");
    }


}
